package top.littlejiang.onlinexam.mapper;

import org.apache.ibatis.annotations.Param;
import top.littlejiang.onlinexam.entity.OlexamExamPaper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 试卷表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2021-03-11
 */
public interface OlexamExamPaperMapper extends BaseMapper<OlexamExamPaper> {

    /**
     * 根据课程查找试卷
     * @param paperName
     * @param courseName
     * @return
     */
    List<OlexamExamPaper> getListByCourse(@Param("paperName") String paperName, @Param("courseName") String courseName);

    /**
     * 根据考试查找试卷
     * @param paperName
     * @param examName
     * @return
     */
    List<OlexamExamPaper> getListByExam(@Param("paperName")String paperName, @Param("examName") String examName);
}
